﻿@model WeChatPayScoreServiceOrderViewModel
@{
    ViewData["Title"] = "支付分-创建支付分订单API";
}
<nav aria-label="breadcrumb">
    <ol class="breadcrumb">
        <li class="breadcrumb-item"><a asp-controller="WeChatPayV3" asp-action="Index">微信支付V3</a></li>
        <li class="breadcrumb-item active" aria-current="page">@ViewData["Title"]</li>
    </ol>
</nav>
<br />
<div class="card">
    <div class="card-body">
        <form asp-controller="WeChatPayV3" asp-action="ServiceOrder">
            <div asp-validation-summary="All" class="text-danger"></div>
            <div class="form-group">
                <label asp-for="ServiceId"></label>
                <input type="text" class="form-control" asp-for="ServiceId" value="500001" />
            </div>
            <div class="form-group">
                <label asp-for="OutOrderNo"></label>
                <input type="text" class="form-control" asp-for="OutOrderNo" value="@DateTime.Now.ToString("yyyyMMddHHmmssfff")" />
            </div>
            <div class="form-group">
                <label asp-for="ServiceIntroduction"></label>
                <input type="text" class="form-control" asp-for="ServiceIntroduction" value="测试支付分订单" />
            </div>
            <div class="form-group">
                <label asp-for="StartTime"></label>
                <input type="text" class="form-control" asp-for="StartTime" value="OnAccept" />
            </div>
            <div class="form-group">
                <label asp-for="EndTime"></label>
                <input type="text" class="form-control" asp-for="EndTime" value="@DateTime.Now.AddMinutes(5).ToString("yyyyMMddHHmmss")" />
            </div>
            <div class="form-group">
                <label asp-for="RiskFundName"></label>
                <input type="text" class="form-control" asp-for="RiskFundName" value="ESTIMATE_ORDER_COST" />
            </div>
            <div class="form-group">
                <label asp-for="RiskFundAmount"></label>
                <input type="text" class="form-control" asp-for="RiskFundAmount" value="1" />
            </div>
            <div class="form-group">
                <label asp-for="NotifyUrl"></label>
                <input type="text" class="form-control" asp-for="NotifyUrl" value="http://domain.com/wechatpay/v3/notify/score/confirmorpaid" />
            </div>
            <div class="form-group">
                <label asp-for="OpenId"></label>
                <input type="text" class="form-control" asp-for="OpenId" />
            </div>
            <button type="submit" class="btn btn-primary">提交请求</button>
        </form>
        <hr />
        <form class="form-horizontal">
            <div class="form-group">
                <label>Response:</label>
                <textarea class="form-control" rows="10">@ViewData["response"]</textarea>
            </div>
        </form>
    </div>
</div>
@section Scripts {
    @{await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
}
